package com.anxin.act.task.dao;

import com.anxin.act.task.addTask.RuntimeActivityDefinitionEntity;
import com.anxin.act.task.addTask.SimpleRuntimeActivityDefinitionEntity;
import org.apache.ibatis.annotations.Param;
import org.w3c.dom.stylesheets.LinkStyle;

import java.util.List;

/**
 * 加签记录Dao接口
 *
 * @author jbs
 * @date 2020-05-12
 */
public interface WfActivityCreationDao{


    /**
     * 新增加签记录
     *
     * @param entity 加签信息
     * @return 结果
     */
    public int insert(RuntimeActivityDefinitionEntity entity);

    /**
     * 根据cloneActivityId 查询加签记录
     * @param cloneActivityId
     * @return
     */
    public SimpleRuntimeActivityDefinitionEntity getByCloneId(@Param("cloneActivityId") String cloneActivityId);

    /**
     * 根据processInstanceId 查询加签记录
     * @param processInstanceId
     * @return
     */
    public List<SimpleRuntimeActivityDefinitionEntity> getByProcessInstanceId(@Param("processInstanceId") String processInstanceId);



}
